package com.example.tvwanandroid.retrofit

import com.example.tvwanandroid.bean.ArticleListBean
import com.example.tvwanandroid.bean.Repo
import retrofit2.Call
import retrofit2.http.GET
import retrofit2.http.Path

interface GitHubService {
    @GET("users/rengwuxian/repos")
    fun getRepos(): Call<List<Repo?>?>?

    @GET("users/{user}")
    fun listRepos(@Path("user") user: String?): Call<List<Repo?>?>?

    @GET("/article/list/{page}/json")
    fun articleList(@Path("page") page:Int) : Call<List<ArticleListBean>>
}